projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d689ee7
)
box: Make sure center_req is initialized
author
Timm Bäder
<mail@baedert.org>
Mon, 20 Mar 2017 13:16:56 +0000
(14:16 +0100)
committer
Daniel Boles
<dboles@src.gnome.org>
Mon, 20 Mar 2017 20:57:07 +0000
(20:57 +0000)
In case we have an invisible center widget, we never initialize it, but
later still use it.
gtk/gtkbox.c
patch
|
blob
|
history
diff --git
a/gtk/gtkbox.c
b/gtk/gtkbox.c
index e39eb495a56d50d9d1bb257033d60504d4a23c89..e034be851b9689c3cbd8a0b90662e0e7823fbe70 100644
(file)
--- a/
gtk/gtkbox.c
+++ b/
gtk/gtkbox.c
@@
-830,7
+830,7
@@
gtk_box_size_allocate_with_center (GtkWidget *widget,
GtkTextDirection direction;
GtkAllocation child_allocation;
GtkRequestedSize *sizes[2];
- GtkRequestedSize center_req;
+ GtkRequestedSize center_req
= {0, 0}
;
gint child_minimum_baseline, child_natural_baseline;
gint minimum_above, natural_above;
gint minimum_below, natural_below;